<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS --><!--地址改成从cdn服务器 稳定性高-->
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
  <style>
    .el-header{
      border: 2px solid red;
    }
    .el-main{
      border: 2px solid red;
      height: 500px;
    }
    .el-footer{
      border: 2px solid red;
    }
    .el-aside{
      border: 2px solid red;
    }
  </style>
</head>
<body>
<div id="app">
  <div style="width: 1200px;margin: 0 auto">
    <el-container>
      <el-header>
        <h1 style="margin: 10px 0 0 0">达内后台管理系统</h1>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu>
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span><b>员工管理</b></span>
              </template>
              <el-menu-item index="1-1">员工列表</el-menu-item>
              <el-menu-item index="1-2">添加员工</el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-edit"></i>
                <span><b>部门管理</b></span>
              </template>
              <el-menu-item index="2-1">部门列表</el-menu-item>
              <el-menu-item index="2-2">添加部门</el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <h3 align="center">员工列表</h3>
          <div style="width: 750px; margin: 0 auto">
           <el-card>
             <template>
               <el-table :data="arr" style="width: 100%">
                 <el-table-column type="index" label="序号" width="180"></el-table-column>
                 <el-table-column prop="name" label="姓名" width="180"></el-table-column>
                 <el-table-column prop="sal" label="工资" width="180"></el-table-column>
                 <el-table-column prop="job" label="工作"></el-table-column>
                 <el-table-column label="操作">
                   <template slot-scope="scope">
                     <el-button
                             size="mini"
                             type="danger"
                             @click="handleDelete(scope.$index, scope.row)">删除</el-button>
                   </template>
                 </el-table-column>
               </el-table>
             </template>
           </el-card>
          </div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
 let v = new Vue({
    el: '#app',
    data: function() {
      return {
        arr:[{name:"王克晶",sal:"30000",job:"讲师"},
          {name:"范传奇",sal:"25000",job:"讲师"},
          {name:"齐雷",sal:"50000",job:"总监"}]
      }
    },
   methods:{

   }
  })
</script>
</html>